package com.gugee.ins.common.model.mysql.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * ins帖子商品关联表
 * </p>
 *
 * @author HuangXin
 * @since 2021-02-25
 */
@Data
@TableName(value = "ins_rel_media_product")
public class InsRelMediaProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 帖子编码
     */
    private String shortcode;

    /**
     * 帖子所属播主的uid
     */
    private Long uid;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 帖子发表时间戳
     */
    @TableField(value = "taken_time")
    private Long takenTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Long createTime;

    /**
     * 是否是为自己带货的帖子
     */
    @TableField(value = "is_self")
    private Boolean isSelf;

    /**
     * 评论数
     */
    @TableField(value = "comment_count")
    private Integer commentCount;

    /**
     * 点赞数
     */
    @TableField(value = "like_count")
    private Long likeCount;

    /**
     * 参与率
     */
    private Double er;
}
